﻿/*
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IvyOrm
{
    /// <summary>
    /// Specifies options when performing a RecordQuery
    /// </summary>
    [Flags]
    public enum RecordQueryOptions
    {
        /// <summary>
        /// Uses default row.
        /// </summary>
        None = 0,

        /// <summary>
        /// Returns only the first row or a blank array if no records are returned.
        /// </summary>
        SingleRow = 1,

        /// <summary>
        /// Will throw an error if the result set has fields not mappable to the class.
        /// </summary>
        ThrowErrorOnExtraFields = 2,

        /// <summary>
        /// Will throw an error if class has fields that are not present in the result set.
        /// </summary>
        ThrowErrorOnMissingFields = 4,
    }
}
